home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update16.zoo / gcc-2.0 / README.TOS < prev    next >
Encoding:
Text File  |  1992-03-06  |  2.7 KB  |  85 lines

  1. This is the README file for the GNU native/cross compiler. Diffs are
  2. with respect to GCC V2.0
  3.  
  4.     -configuration:
  5.         copy all the files from the gcc v2.0 distribution
  6.         into a directory called SRC (i created symbolic links between
  7.         the files).
  8.         copy all the files from the gcc v2.0 distribution
  9.              sub-directory config into SRC/config
  10.         copy all the files in this directory into SRC.
  11.            (note: there are 2 .h files astab.h and math-68881.h to be
  12.                copied into SRC too).
  13.         copy xm-atari.h and tm-atari.h into SRC/config
  14.         cd to SRC
  15.         Apply the diffs using larry walls patch program
  16.             patch < gcc-20.diff
  17.         make the following links in SRC
  18.             config.h to config/xm-atari.h
  19.             tconfig.h to config/xm-atari.h
  20.             tm.h to config/tm-atari.h
  21.             aux-output.c to config/m68k.c
  22.             md to config/m68k.md
  23.  
  24.         edit Makefile.* to make sure the following
  25.         are defined appro.:
  26.         CROSSDIR -- the home directory of the cross dev. system
  27.  
  28.         edit xm-atari.h & tm-atari.h and replace all
  29.         instances of the string ".../home/bammi/cross-../..."
  30.         with CROSSDIR/... (ie. the same string as CROSSDIR above
  31.         plus whatever was there after .../home/bammi/cross-.../ ).
  32.  
  33.         edit config/tm-atari.h and at the top of the file set
  34.         TARGET_DEFAULT appropriately. this file is now
  35.         conditionalized for various combinations of 
  36.         68000/68020/68881
  37.  
  38.         you DO NOT have to edit gcc.c anymore to look for paths to edit.
  39.  
  40.     -if you already have a native minix-gcc and want to use
  41.      that to make new minix executables, skip the next few
  42.      steps that make the cross-compiler system.
  43.      Please note that you will not be able to compile the
  44.      compiler itself on a St with less that 2.5 M of memory.
  45.  
  46.     -make cross compiler by
  47.         make -f Makefile.minix
  48.     will make and install cpp, cc1  and gcc
  49.  
  50.     -clean out the directory by
  51.         make -f Makefile.minix clean
  52.     - go and make a cross-gas cross-ld and cross-as
  53.     - make the minix gcc libraries using the cross-compiler
  54.       system you made above.
  55.  
  56.     - to make minix atari st executables
  57.        - make and install cross compiler as above (or use your native
  58.         minix-gcc compiler)
  59.        - make by
  60.         make -f Makefile.cminix
  61.  
  62. Please note: *.c files in this directory are the already patched files
  63. for the gcc-src directory.
  64.  
  65. which makefile to use:
  66.  
  67.  
  68. On a (BSD unix host)       On a HPUX host
  69. (Only sun sparc tested)
  70.  
  71. GMakefile        GMakefile.hp        to make the CROSS-g++ parts
  72. GMakefile.st        GMakefile.st.hp        to make NATIVE-g++ parts
  73. Makefile        Makefile.hp        to make CROSS-gcc parts
  74. Makefile.st        Makefile.st.hp        to make NATIVE-gcc parts
  75.  
  76.  
  77. NATIVE parts are 68k code that run on the atari.
  78. CROSS parts run on the HOST and not on the atari.
  79.  
  80. --
  81. bang:   uunet!cadence!bammi            jwahar r. bammi
  82. domain: bammi@cadence.com
  83. GEnie:    J.Bammi
  84. CIS:    71515,155
  85.